package com.atguigu.ucenter.mapper;

import com.atguigu.common.cron.vo.ResMyCourseVo;
import com.atguigu.ucenter.entity.Member;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 会员表 Mapper 接口
 * </p>
 *
 * @author Panghl
 * @since 2021-02-03
 */
public interface MemberMapper extends BaseMapper<Member> {
    /**
     * 获取当天注册总人数
     * @param day
     * @return
     */
    Integer selectCountRegister(String day);

    /**
     * 更新会员签名等信息
     * @param member
     */
    void updateInfoById(Member member);

    /**
     * 查询对应会员已购买的课程信息
     * @param memberId
     * @return
     */
    List<ResMyCourseVo> selectCoursesByMemberId(String memberId);
}
